package com.sc.VenusQueryBeta.contract.account.cunka;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.cunka.CunKaList2;


import io.reactivex.Observable;

/**
 * Created by Administrator on 18/10/2018.
 *
 */

public interface CunKa02Contract {
    abstract class CunKa02Presenter extends BasePresenter<ICunKa02ActivitynModel,ICunKa02Activity> {
        //加载存卡明细数据
        public abstract void getCunKa02(String serverAddress, String projectName, int serverPort,int clientindex,int startint ,int limit,int roomid,
                                        String clientAppmsgnum,String currencynameCN);

        //查询厅(根据账房那边排序)
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        /**
         * 加载更多test list
         */
        public abstract void getMoreCunKa02(String serverAddress, String projectName, int serverPort,int clientindex,int roomid,
                                            String clientAppmsgnum,String currencynameCN);
    }
    interface ICunKa02ActivitynModel extends IBaseModel {
        //存卡明细
        Observable<CunKaList2> getCunKa02(String serverAddress, String projectName, int serverPort, int clientindex, int start, int limit,int roomid,
                                          String clientAppmsgnum,String currencynameCN);

        Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);


    }
    interface ICunKa02Activity extends IBaseActivity {

        /**
         * 俠士存卡02數據成功
         * @param cunKaList2Bean
         */
        void showCunKaData2Success(CunKaList2 cunKaList2Bean);

        void showNetworkError(Throwable throwable);

        void showqueryAllCurrencyList(CurrencyListBean currencyListBean);

        /** 显示加载更多错误
         */
        void showLoadMoreError();

        /**
         * 显示没有更多数据
         */
        void showNoMoreData();
    }
}
